{{ if .TableOfContents }}
    <aside class="sidebar">
        <div id="post-menu" class="card">
            <div class="card-title sidebar-title">目录</div>
            <div id="toc">{{ .TableOfContents }}</div>
        </div>
    </aside>
{{ end }}